package java_test.mtthod;

public class MethodEnum1 {
    public static void main(String[] args) {
        System.out.println("所有汽车的价格");
        for (Cat c : Cat.values()) {
            System.out.println(c + " 需要 " + c.getPrice() + " 千美元。");
        }
    }
}
